load("@rules_python//python:defs.bzl", "py_library")

package(
    default_applicable_licenses = ["//:package_license"],
    default_visibility = ["//visibility:private"],
)

package_group(
    name = "python_packages",
    packages = ["//tensorflow_federated/python/..."],
)

package_group(
    name = "internal_packages",
    packages = [
        "//tensorflow_federated/python/...",

        # The examples and tests in TFF should depend on the public API.
        "-//tensorflow_federated/examples/...",
        "-//tensorflow_federated/python/tests/...",
    ],
)

licenses(["notice"])

py_library(
    name = "python",
    srcs = ["__init__.py"],
    visibility = ["//tools/python_package:python_package_tool"],
)
